package com.practice3;

public class life {
    private String content;

    public void setContent(String content) {
        this.content = content;
    }
    public void init(){
        System.out.println("初始化节点的监控方法，调用init（）方法");
    }
    public void destroy(){
        System.out.println("销毁前节点的监控方法，调用destro（）方法");
    }
    public void print(){
        System.out.println("输出属性值:"+content);
    }
}
